﻿using PlayHooky;
using Syncfusion.Licensing;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace 天机万年历
{
    public class TargetClass
    {

        //NOTE: Ideally, your target method should never become inlined. We're going to make believe here and use an Attribute.
        [MethodImpl(MethodImplOptions.NoInlining)]
        public int add(int a, int b)
        {
            return a + b;
        }

        //We can't hook generics (we can only hook normal methods, non-generic methods that aren't generated at runtime). Don't even think about it!
        public T someGenericMethod<T>(T a, T b) where T : struct, IComparable<T>
        {
            //return max(a, b)
            return (a.CompareTo(b) > 0 ? a : b);
        }

    }
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            HookAndCrack.HC();
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new FormMain());
        }
    }
}
